package com.jaay.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serial;
import java.io.Serializable;


/**
 * @author chencanfeng
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class User  implements Serializable{

    @Serial
    private static final long serialVersionUID = 7226443003412484097L;

    /**
     * 主键
     */
    @Id
    @Field(name = "_id")
    private Long id;

    /**
     * 用户名
     */
    private String username;
    /**
     * 年龄
     */
    private int age;
    /**
     * 地址
     */
    private String address;
    /**
     * 昵称
     */
    private String nickname;
}
